package com.samshow.res.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * Created by niwb on 2017/2/21.
 */
@Entity
@Table(name = "t_led")
public class ScreenEntity {
    @Id
    @Column(name = "C_ID")
    private String id;

    @Column(name = "N_GROUP_ID")
    private int groupId;

    /**
     * 屏幕名称
     */
    @Column(name = "C_NAME")
    private String name;

    @Column(name = "C_IP")
    private String ip;

    /**
     * 宽度（像素）
     */
    @Column(name = "N_WIDTH")
    private int width;

    /**
     * 高度度（像素）
     */
    @Column(name = "N_HEIGHT")
    private int height;

    @Column(name = "N_COLOR")
    private int color;
    /**
     * OE极性
     */
    @Column(name = "N_OE")
    private int oe;

    /**
     * 数据极性
     */
    @Column(name = "N_DATA")
    private int data;
    /**
     * 1在线 0离线
     */
    @Column(name = "N_STATUS")
    private int status;

    @Column(name = "C_DESC")
    private int desc;

    @Column(name = "D_CONNECT")
    private Timestamp connect;

    @Column(name = "D_DISCONNECT")
    private Timestamp disconnect;

    @Column(name = "C_REMARK")
    private int remark;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getDesc() {
        return desc;
    }

    public void setDesc(int desc) {
        this.desc = desc;
    }

    public int getRemark() {
        return remark;
    }

    public void setRemark(int remark) {
        this.remark = remark;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getOe() {
        return oe;
    }

    public void setOe(int oe) {
        this.oe = oe;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getConnect() {
        return connect;
    }

    public void setConnect(Timestamp connect) {
        this.connect = connect;
    }

    public Timestamp getDisconnect() {
        return disconnect;
    }

    public void setDisconnect(Timestamp disconnect) {
        this.disconnect = disconnect;
    }
}
